<?php
	require_once ( '../nvslbase.php');
	require_once(NVSL_BASE.DS.'config'.DS.'config.php');
	require_once(NVSL_LIB.DS.'Doctrine'.DS.'Doctrine.php');
	spl_autoload_register(array('Doctrine', 'autoload'));
	$nvsl->db_Manager = Doctrine_Manager::getInstance();
	$nvsl->db_Conexion = $nvsl->db_Manager->connection($nvsl->getDSN());
	Doctrine_Core::generateModelsFromDb(NVSL_BASE.DS.'modelos', 
										array($nvsl->db_Database),
										array('generateTableClasses' => true));
	Doctrine_Core::generateYamlFromDb(NVSL_BASE.DS.'util/schema.yml');
	
	
?>